import pytest



@pytest.fixture(scope="module")
def module_fix():
    print("module级别的fixture，start。。。")
    yield
    print("module级别的fixture，end!。。。")




@pytest.fixture(scope="class")
def myfix_first():
    print("第一行，start")
    yield True
    print("第一行，end")


#fixture嵌套
@pytest.fixture
def myfix_second(myfix_first):
    print("第二行，start")
    yield "我是返回值","abc"
    print("第二行，end")

# @pytest.fixture(scope="class")
# def class_setup_teardown():
#     print("类前置，pytest的fixture...用例执行前，会执行的。")
#     yield "py_54的返回值",True,123
#     print("类后置，结束....类里面的所有用例执行完成之后，才会执行的")


